<?php
 $active=request()->controller().'/'.request()->action();
?>
<nav class="navbar-default navbar-static-side" role="navigation">
  <div class="nav-close">
    <i class="fa fa-times-circle"></i>
  </div>
  <div class="sidebar-collapse">
    <ul class="nav" id="side-menu">
      <li class="nav-header">
        <div class="dropdown profile-element">
          <a data-toggle="dropdown" class="dropdown-toggle" href="#">
            <span class="clear">
              <span class="block m-t-xs">
                <strong class="font-bold">{$info.account}</strong>
              </span>
              <span class="text-muted text-xs block" style="padding-top: 10px;">超级管理员
                <b class="caret"></b>
              </span>
            </span>
          </a>
          <ul class="dropdown-menu animated fadeInRight m-t-xs">
            <li>
              <a class="J_menuItem" href="{:url('Index/personal_center')}" onclick="close_center()">个人资料</a>
            </li>
            <li class="divider"></li>
            <li>
              <a href="javascript:void(0)" onclick="up_login()">安全退出</a></li>
          </ul>
        </div>
        <div class="logo-element">H+</div>
      </li>
      <li>
        <a class="J_menuItem" href="/admin/home/index.html" data-index="1">
          <i class="fa fa-home"></i>
          <span class="nav-label">主页</span>
        </a>
      </li>
      {if condition="$group_power eq 'all' || in_array('member',$group_power)"}
      <li>
        <a href="#">
          <!-- <i class="fa fa fa-user"></i> -->
          <span class="nav-label">首页管理</span>
          <span class="fa arrow"></span>
        </a>
        <ul class="nav nav-second-level">
            <li>
              <a class="J_menuItem" href="{:url('Admin/li')}" class="active">子账号管理</a>
            </li>
            <li>
              <a class="J_menuItem" href="{:url('Article/lists')}" class="active">内容管理</a>
            </li>
              <li>
              <a class="J_menuItem" href="{:url('Article/notice_lists',array('type=>5'))}" class="active">公告管理</a>
            </li>
            <li>
              <a class="J_menuItem" href="{:url('Link/lists')}" class="active">链接管理</a>
            </li>
            <li>
              <a class="J_menuItem" href="{:url('Member/member_level')}" class="active">会员等级管理</a>
            </li>
            <li>
              <a class="J_menuItem" href="{:url('Member/lists')}" class="active">会员管理</a>
            </li>
            <li>
            <a class="J_menuItem" href="{:url('Regionalagent/region_list')}">区域代理用户查看</a>
          </li>
        </ul>
      </li>
      {/if}
    
      {if condition="$group_power eq 'all' || in_array('order',$group_power)"}
      <li>
        <a href="#">
          <!-- <i class="fa fa fa-cubes"></i> -->
          <span class="nav-label">任务管理中心</span>
          <span class="fa arrow"></span>
        </a>
        <ul class="nav nav-second-level">
           <li>
              <a class="J_menuItem" href="{:url('Mission/mission')}" class="active" />任务发布</a>
          </li>
          <li>
              <a class="J_menuItem" href="{:url('Mission/examine_mission')}" class="active" />任务审核</a>
          </li>
          <li>
              <a class="J_menuItem" href="{:url('Mission/examine_record')}" class="active" />任务审核记录</a>
          </li>
        </ul>
      </li>
      {/if}


   

      <li>
        <a href="#">
          <!-- <i class="fa fa fa-comments-o"></i> -->
          <span class="nav-label">用户中心管理</span>
          <span class="fa arrow"></span>
        </a>
        <ul class="nav nav-second-level">
          <li>
            <a class="J_menuItem" href="{:url('Member/lists')}" class="active">用户资料查看</a>
          </li>

          <li>
            <a class="J_menuItem" href="{:url('Member/lists_info')}" class="active">用户资料详情</a>
          </li>

      <!--     <li>
            <a class="J_menuItem" href="{:url('Withdraw/lists')}" class="active">提现审核</a>
          </li>
          <li>
            <a class="J_menuItem" href="{:url('Proportion/lists')}" class="active">提成金额比例</a>
          </li> -->
        </ul>
      </li>

      <li>
        <a href="#">
          <!-- <i class="fa fa fa-comments-o"></i> -->
          <span class="nav-label">资金管理</span>
          <span class="fa arrow"></span>
        </a>
        <ul class="nav nav-second-level">
          <li>
            <a class="J_menuItem" href="{:url('Withdraw/lists')}" class="active">提现审核</a>
          </li>
          <li>
            <a class="J_menuItem" href="{:url('Withdraw/record')}" class="active">提现记录</a>
          </li>
          <li>
            <a class="J_menuItem" href="{:url('Proportion/lists')}" class="active">提成金额比例</a>
          </li>
          <li>
            <a class="J_menuItem" href="{:url('Profit/profit_list')}" class="active">收益记录</a>
          </li>
        </ul>
      </li>

      <li>
        <a href="#">
          <!-- <i class="fa fa fa-comments-o"></i> -->
          <span class="nav-label">轮播管理</span>
          <span class="fa arrow"></span>
        </a>
        <ul class="nav nav-second-level">
          <li>
            <a class="J_menuItem" href="{:url('Banner/lists')}">轮播图管理</a>
          </li>
          <li>
              <a class="J_menuItem" href="{:url('Banner/typeface')}" class="active">轮播文字管理</a>
          </li>
          <li>
              <a class="J_menuItem" href="{:url('Popularity/popularity_lists')}" class="active">平台人气设置</a>
          </li>
        </ul>
      </li>
    </ul>
  </div>
</nav>